package com.zjh.admin.sys.model;

import com.zjh.core.base.basemodel.BaseEntity;
import org.apache.ibatis.type.Alias;

import java.util.Date;
import java.util.List;


/**
 * @author ZWX
 * @Description: 角色实体
 * @date 2018/10/15 23:15
 */
@Alias("roleEntity")
public class RoleEntity extends BaseEntity {

    /**
     *
     */
    private static final long serialVersionUID = 1L;

    /**
     * 角色名
     */
    private String name;

    /**
     * 角色key
     */
    private String key;

    /**
     * 角色状态
     */
    private Integer status;

    /**
     * 角色描述信息
     */
    private String description;


    /**
     * 角色更新时间
     */
    private Date updateTime;

    /**
     * 角色下所有用户列表结合
     */
    private List<UserEntity> userList;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }


    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public List<UserEntity> getUserList() {
        return userList;
    }

    public void setUserList(List<UserEntity> userList) {
        this.userList = userList;
    }

    @Override
    public String toString() {
        return "RoleEntity [id=" + id + ", name=" + name + ", key=" + key + ", status="
                + status + ", description=" + description + ", createTime="
                + createTime + ", updateTime=" + updateTime + ", userList="
                + userList + "]";
    }

}